<?php

namespace App\Http\Requests\Admin\QuarterlyController;

use App\Http\Requests\BaseRequest;

class doRule extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name'=>'required',
            'start_time'=>'required',
            'end_time'=>'required',
        ];
    }

    public function messages()
    {
        return [
            'name.required' => '季度名稱必填!',
            'start_time.required' => '請填寫季度開始時間!',
            'end_time.required' => '請填寫季度結束時間!',
        ];
    }
}
